package com.edu.eduservice.mapper;

import com.edu.eduservice.entity.EduCourse;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.edu.eduservice.vo.CoursePublishVo;
import com.edu.eduservice.vo.CourseQuery;
import com.edu.eduservice.vo.CourseWebVo;

import java.util.List;

/**
 * <p>
 * 课程 Mapper 接口
 * </p>
 *
 * @author testjava
 * @since 2021-05-30
 */
public interface EduCourseMapper extends BaseMapper<EduCourse> {
    /**
     * 返回发布课程vo
     * @param courseId
     * @return
     */
     CoursePublishVo getPublicCoureseInfo(String courseId);

    /**
     * 分页条件查询
     * @param courseId
     * @return
     */
    public CourseQuery queyrCourse(String courseId);


    /**
     * 查询课程和讲师信息
     * @param courseId
     * @return
     */
    CourseWebVo selectInfoWebById(String courseId);

}
